<?php
namespace app\jwt;

use Firebase\JWT\JWT;
use Firebase\JWT\Key;

class JWTS
{
    public static function us($uid){
        //根据需要修改成你的密钥
        $key = "example_key";
        $payload = array(
          "uid"=>$uid
        );
        $jwt = JWT::encode($payload, $key, 'HS256');
        return $jwt;
    }

}